package com.cola.decorator14;

/**
 * @Grup:com.cola.decorator
 * @Auther:cola
 * @Data:2021/3/22-2021-03-12:52
 * @version:1.0
 */
public class Test {
    public static void main(String[] args) {
       /* OutputStream out=new FileOutputStream("xxx");
        BufferedOutputStream bos=new BufferedOutputStream(out);
        PrintStream ps=new PrintStream(bos);
        ps.print(..);*/


        Drink drink=new SoyaBeanMike();
        SurgarDecorate surgar=new SurgarDecorate(drink);
        EggDecorate egg=new EggDecorate(surgar);
        BlackBeanDecorate blackBean=new BlackBeanDecorate(egg);
        System.out.println("你点的豆浆是:"+blackBean.description());
        System.out.println("一共花了多少钱"+blackBean.cost());
    }
}
